<h2 class="title-bar">Mein Konto: Adressbuch</h2>

<div class="form-box-wrapper" style="width:442px">
	<div class="form-box">

		<h3>Ihre Adressen</h3>

		<?php if($this->addresses->count() > 0): ?>
			<?php foreach($this->addresses AS $i => $address): ?>
				<div style="float:left;width:50%">
					<?php echo $this->partial('addressbook/_address.phtml', array('address' => $address)) ?>
					<a href="<?php echo $this->urlThisPage(array('sherpa_addressbook' => array('action' => 'form', 'id' => $address->getId()))) ?>"><img src="sherpa/img/btn-bearbeiten.gif" alt="Bearbeiten" /></a>
					<a href="<?php echo $this->urlThisPage(array('sherpa_addressbook' => array('action' => 'delete', 'id' => $address->getId()))) ?>"><img src="sherpa/img/btn-loeschen.gif" alt="L&ouml;schen" /></a><br />
					<br />
				</div>
				<?php if(($i+1) % 2 == 0): ?>
					<div style="clear:left"></div>
				<?php endif; ?>
			<?php endforeach; ?>
		<?php else: ?>
			<p>Sie haben noch keine Adressen erfasst.</p>
		<?php endif; ?>
		<div style="clear:left"></div>

	</div>
</div>
<p style="margin-top:7px"><a href="<?php echo $this->urlThisPage(array('sherpa_addressbook' => array('action' => 'form'))) ?>"><img src="sherpa/img/btn-neue-adresse.gif" alt="Neue Adresse" /></a></p>